import request from '@/utils/request'

// 查询路灯管理列表
export function listWyLampManagement(query) {
  return request({
    url: '/park/wyLampManagement/list',
    method: 'get',
    params: query
  })
}

// 查询路灯管理详细
export function getWyLampManagement(id) {
  return request({
    url: '/park/wyLampManagement/' + id,
    method: 'get'
  })
}

// 新增路灯管理
export function addWyLampManagement(data) {
  return request({
    url: '/park/wyLampManagement',
    method: 'post',
    data: data
  })
}

// 修改路灯管理
export function updateWyLampManagement(data) {
  return request({
    url: '/park/wyLampManagement',
    method: 'put',
    data: data
  })
}

// 删除路灯管理
export function delWyLampManagement(id) {
  return request({
    url: '/park/wyLampManagement/' + id,
    method: 'delete'
  })
}
